# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
pkgname=gpodder
pkgver=3.11.3
pkgrel=0
pkgdesc="Podcast aggregator"
url="https://gpodder.org"
arch="noarch !s390x !riscv64" # blocked by adwaita-icon-theme
license="GPL-3.0-or-later"
depends="
	adwaita-icon-theme
	py3-cairo
	py3-dbus
	py3-gobject3
	py3-html5lib
	py3-mygpoclient
	py3-podcastparser
	py3-requests
	python3
	xdg-utils
"
makedepends="py3-setuptools intltool help2man"
checkdepends="py3-pytest py3-pytest-httpserver py3-pytest-cov py3-minimock desktop-file-utils"
subpackages="$pkgname-doc $pkgname-lang $pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/gpodder/gpodder/archive/refs/tags/$pkgver.tar.gz"

check() {
	make unittest
}

package() {
	make install PREFIX=/usr DESTDIR=$pkgdir

	touch no-update-check
	install -Dm644 no-update-check -t "$pkgdir"/usr/share/gpodder
}

sha512sums="
643097fe209cc69a7674fd265a64099c9b34cc9b2dcee4cc09004113559334822db1dea5359f302956e15b74d3f9c5e1ce8727b89e02f067e7ee6b8261c53ca6  gpodder-3.11.3.tar.gz
"
